package sg.techstudio.suntec.filter;

import sg.techstudio.suntec.object.UserObj;

public class UserFilter extends UserObj {

	private static final long serialVersionUID = 4985118306164847462L;
	private boolean[] selectedContentIds;
	private Paging paging = new Paging();
	private Ordering ordering = new Ordering();
	
	public Paging getPaging() {
		return paging;
	}
	public Ordering getOrdering() {
		return ordering;
	}
	public void setOrdering(Ordering ordering) {
		this.ordering = ordering;
	}
	public void setPaging(Paging paging) {
		this.paging = paging;
	}
	public boolean[] getSelectedContentIds() {
		return selectedContentIds;
	}
	public void setSelectedContentIds(boolean[] selectedContentIds) {
		this.selectedContentIds = selectedContentIds;
	}
	public int getSelectedLength() {
		if(selectedContentIds==null || selectedContentIds.length==0)
			return 0;
		int count = 0;
		for(boolean c: selectedContentIds)
			if(c)
				count++;
		return count;
			
	}

}